<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Orderno')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-orderNo" data-rule="required" class="form-control" name="row[orderNo]" type="text" value="{$row.orderNo}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Orderunique')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-orderunique" data-rule="required" class="form-control" name="row[orderunique]" type="text" value="{$row.orderunique}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goodsmoney')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goodsMoney" class="form-control" step="0.01" name="row[goodsMoney]" type="number" value="{$row.goodsMoney}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Delivertype')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-deliverType" data-rule="required" class="form-control selectpicker" name="row[deliverType]">
                {foreach name="delivertypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.deliverType"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Delivermoney')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-deliverMoney" data-rule="required" class="form-control" step="0.01" name="row[deliverMoney]" type="number" value="{$row.deliverMoney}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Totalmoney')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-totalMoney" class="form-control" step="0.01" name="row[totalMoney]" type="number" value="{$row.totalMoney}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Realtotalmoney')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-realTotalMoney" data-rule="required" class="form-control" step="0.01" name="row[realTotalMoney]" type="number" value="{$row.realTotalMoney}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Needpay')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-needPay" class="form-control" step="0.01" name="row[needPay]" type="number" value="{$row.needPay}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Paytype')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-payType" data-rule="required" class="form-control selectpicker" name="row[payType]">
                {foreach name="paytypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.payType"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Payfrom')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-payFrom" data-rule="required" class="form-control" name="row[payFrom]" type="number" value="{$row.payFrom}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Payis')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-payis" name="row[payis]" type="hidden" value="{$row.payis}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-payis" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.payis" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-userName" data-rule="required" class="form-control" name="row[userName]" type="text" value="{$row.userName}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Area_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area_ids" data-rule="required" data-source="area/index" data-multiple="true" class="form-control selectpage" name="row[area_ids]" type="text" value="{$row.area_ids}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Useraddress')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-userAddress" data-rule="required" class="form-control" name="row[userAddress]" type="text" value="{$row.userAddress}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Userphone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-userPhone" class="form-control" name="row[userPhone]" type="text" value="{$row.userPhone}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Orderscore')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-orderScore" data-rule="required" class="form-control" name="row[orderScore]" type="number" value="{$row.orderScore}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Invoiceis')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-invoiceis" name="row[invoiceis]" type="hidden" value="{$row.invoiceis}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-invoiceis" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.invoiceis" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Invoicejson')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-invoiceJson" class="form-control " rows="5" name="row[invoiceJson]" cols="50">{$row.invoiceJson}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Orderremarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-orderRemarks" class="form-control" name="row[orderRemarks]" type="text" value="{$row.orderRemarks}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ordersrc')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-orderSrc" data-rule="required" class="form-control selectpicker" name="row[orderSrc]">
                {foreach name="ordersrcList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.orderSrc"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ordercode')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-orderCode" class="form-control" name="row[orderCode]" type="text" value="{$row.orderCode}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Refundis')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-refundis" name="row[refundis]" type="hidden" value="{$row.refundis}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-refundis" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.refundis" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Appraiseis')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-appraiseis" class="form-control" name="row[appraiseis]" type="number" value="{$row.appraiseis}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cancelreason')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-cancelReason" class="form-control selectpicker" name="row[cancelReason]">
                {foreach name="cancelreasonList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.cancelReason"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rejectreason')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-rejectReason" class="form-control selectpicker" name="row[rejectReason]">
                {foreach name="rejectreasonList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.rejectReason"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rejectotherreason')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rejectOtherReason" class="form-control" name="row[rejectOtherReason]" type="text" value="{$row.rejectOtherReason}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Closedis')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-closedis" name="row[closedis]" type="hidden" value="{$row.closedis}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-closedis" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.closedis" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Receivetime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-receivetime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[receivetime]" type="text" value="{$row.receivetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Deliverytime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-deliverytime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[deliverytime]" type="text" value="{$row.deliverytime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Express_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-express_id" data-rule="required" data-source="express/index" class="form-control selectpage" name="row[express_id]" type="text" value="{$row.express_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expressno')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expressNo" class="form-control" name="row[expressNo]" type="text" value="{$row.expressNo}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tradeno')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tradeNo" class="form-control" name="row[tradeNo]" type="text" value="{$row.tradeNo}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Settlement_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-settlement_id" data-rule="required" data-source="settlement/index" class="form-control selectpage" name="row[settlement_id]" type="text" value="{$row.settlement_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Commissionfee')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-commissionFee" class="form-control" step="0.01" name="row[commissionFee]" type="number" value="{$row.commissionFee}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lockcashmoney')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lockCashMoney" class="form-control" step="0.01" name="row[lockCashMoney]" type="number" value="{$row.lockCashMoney}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Prom_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-prom_type" class="form-control selectpicker" name="row[prom_type]">
                {foreach name="promTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.prom_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Noticedeliver')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-noticeDeliver" data-rule="required" class="form-control selectpicker" name="row[noticeDeliver]">
                {foreach name="noticedeliverList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.noticeDeliver"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Usescore')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-useScore" class="form-control" name="row[useScore]" type="number" value="{$row.useScore}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Scoremoney')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-scoreMoney" class="form-control" step="0.01" name="row[scoreMoney]" type="number" value="{$row.scoreMoney}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Payrand')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-payRand" class="form-control" name="row[payRand]" type="number" value="{$row.payRand}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ordertype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-orderType" class="form-control" name="row[orderType]" type="number" value="{$row.orderType}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shop_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_id" data-rule="required" data-source="shop/index" class="form-control selectpage" name="row[shop_id]" type="text" value="{$row.shop_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Area_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area_id" data-rule="required" data-source="area/index" class="form-control selectpage" name="row[area_id]" type="text" value="{$row.area_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Invoiceclient')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-invoiceClient" class="form-control" name="row[invoiceClient]" type="text" value="{$row.invoiceClient}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
